import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2023-10-25
 * Time:19:02
 */

public class test2 {
    public static void main(String[] args) {
        
    }

    public static void main3(String[] args) {
        //给定两个数，求这两个数的最大公约数
        //最大公约数是两数中较小者的因子
        int a = 0,b = 0;
        Scanner scanner = new Scanner(System.in);
        a = scanner.nextInt();
        b = scanner.nextInt();
        int c = a <= b ? a : b;  //取a，b中的较小值
        for (int i = 2; i < c+1; i++) {
            if (a % i == 0 && b % i == 0){
                System.out.println(i);
                break;
            }
        }
    }

    public static void main2(String[] args) {
        System.out.println("请输入你的姓名：");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine();
        System.out.println("请输入你的年龄：");
        int age = scanner.nextInt();
        System.out.println(age);
    }

    public static void main1(String[] args) {
        int i = 9;
        int cnt = 0;
        //每取出一个9，cnt就加1，取出后
        while(i < 100) {
            int j = i;
            while(j != 0) {
                if(j % 10 == 9) {
                    cnt++;
                }
                j /= 10;
            }
            i+=10;
        }
        System.out.println(cnt);
    }
}
